<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <script src="vue/vue.js" charset="utf-8"></script>

    <style>
        .red{
            color: red;
        }
        .blue{
            background-color: blue;
        }
    </style>

</head>
<body>
<div id="box">
    <!--这里的red和b指的是数据  对饮的是data-->
    <strong :class="[red,b]">文字。。</strong>

    <strong  :style="{color:'green'}">文字。。。。</strong>

    <strong  :style="[c]">文字。。。。</strong>


</div>

<script >
    new Vue({
        el: '#box',
        data: {
            red:'red',
            b:'blue',
            c:'{color:"green"}'
        },
        methods: {

        }
    });

</script>
</body>
</html>